package cn.krui.helper.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * @author zc
 * 登录用户信息实体 兼容后台和api
 */
public class SysLoginInfo implements Serializable {
    /**
     * token
     */
    private String token;
    /**
     * 用户类型：用户类型1=1 用户类型2=2 用户类型3=3 用户类型4=4
     */
    private String user_type;
    /**
     * 登录账号
     */
    private String user_name;
    /**
     * 用户id
     */
    private int uid;
    /**
     * 凭证创建时间
     */
    private Date create_time;
    /**
     * 菜单权限
     */
    private String role_menu;
    /**
     * 功能权限
     */
	private String role_permissions;
	/**
	 * 功能权限按模块拆分
	 */
	private Map<String,String> role_permissions_map;
    /**
     * 用户组id
     */
	private int group_id;
	
	public String getRole_menu() {
		return role_menu;
	}
	public void setRole_menu(String role_menu) {
		this.role_menu = role_menu;
	}
	public String getRole_permissions() {
		return role_permissions;
	}
	public void setRole_permissions(String role_permissions) {
		this.role_permissions = role_permissions;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getUser_type() {
		return user_type;
	}
	public void setUser_type(String user_type) {
		this.user_type = user_type;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public int getGroup_id() {
		return group_id;
	}
	public void setGroup_id(int group_id) {
		this.group_id = group_id;
	}

	public Map<String, String> getRole_permissions_map() {
		return role_permissions_map;
	}

	public void setRole_permissions_map(Map<String, String> role_permissions_map) {
		this.role_permissions_map = role_permissions_map;
	}
	
}